home *** CD-ROM | disk | FTP | other *** search
- on clearButtons
- set whichSection to the frameLabel
- if whichSection = "PDC" then
- clearPDCButtons()
- else
- if (whichSection = "lunch") or (whichSection = "lunch veg") then
- clearLunchButtons()
- else
- if (whichSection = "Breakfast") or (whichSection = "Breakfast Veg") or (whichSection = "Brunch") or (whichSection = "Brunch Veg") then
- clearBreakfastButtons()
- else
- if (whichSection = "Dinner") or (whichSection = "Dinner veg") then
- clearDinnerButtons()
- else
- if (whichSection = "Dinner2") or (whichSection = "Dinner2 Veg") then
- clearDinner2Buttons()
- end if
- end if
- end if
- end if
- end if
- end
-
- on clearPDCButtons
- set btnNames to "diabetes,heart,preg,hypr,vegt,under_19,low_fat,none"
- repeat with x = 1 to 8
- set the castNum of sprite (x + 7) to the number of cast ("red_" & item x of btnNames)
- puppetSprite(x + 7, 0)
- end repeat
- repeat with x = 1 to 3
- set the castNum of sprite (x + 45) to the number of cast ("red_fat_" & x)
- set the visible of sprite (x + 45) to 0
- puppetSprite(x + 45, 0)
- end repeat
- set the visible of sprite 45 to 0
- puppetSprite(45, 0)
- end
-
- on clearLunchButtons
- set btnNames to "lun_meat,lun_pasta,lun_sand"
- repeat with x = 1 to 3
- set the castNum of sprite (x + 13) to the number of cast ("red_" & item x of btnNames)
- puppetSprite(x + 13, 0)
- end repeat
- set the castNum of sprite 18 to the number of cast "red_lun_salad"
- set the castNum of sprite 17 to the number of cast "red_lun_soup"
- puppetSprite(17, 0)
- puppetSprite(18, 0)
- set the castNum of sprite 19 to the number of cast "red_lun_fruit"
- set the castNum of sprite 20 to the number of cast "red_lun_salad"
- puppetSprite(19, 0)
- puppetSprite(20, 0)
- set the castNum of sprite 21 to the number of cast "red_lun_milk"
- set the castNum of sprite 22 to the number of cast "red_lun_cheese"
- puppetSprite(21, 0)
- puppetSprite(22, 0)
- end
-
- on clearBreakfastButtons
- set btnNames to "brk_eggs,brk_meat,brk_pancakes,brk_cereal,brk_potatoes"
- repeat with x = 1 to 5
- set the castNum of sprite (x + 17) to the number of cast ("red_" & item x of btnNames)
- puppetSprite(x + 17, 0)
- end repeat
- set the castNum of sprite 23 to the number of cast "red_brk_fruit"
- set the castNum of sprite 24 to the number of cast "red_brk_juice"
- puppetSprite(23, 0)
- puppetSprite(24, 0)
- end
-
- on clearDinnerButtons
- set the castNum of sprite 12 to the number of cast "red_din_meat"
- set the castNum of sprite 13 to the number of cast "red_din_pasta"
- puppetSprite(12, 0)
- puppetSprite(13, 0)
- set the castNum of sprite 17 to the number of cast "red_din_bread"
- set the castNum of sprite 18 to the number of cast "red_din_potatoes"
- puppetSprite(17, 0)
- puppetSprite(18, 0)
- set the castNum of sprite 19 to the number of cast "red_din_soup"
- set the castNum of sprite 20 to the number of cast "red_din_salad"
- puppetSprite(19, 0)
- puppetSprite(20, 0)
- set the castNum of sprite 23 to the number of cast "red_din_dessert"
- puppetSprite(23, 0)
- end
-
- on clearDinner2Buttons
- set btnNames to "lun_meat,lun_pasta,lun_sand"
- repeat with x = 1 to 3
- set the castNum of sprite (x + 13) to the number of cast ("red_" & item x of btnNames)
- puppetSprite(x + 13, 0)
- end repeat
- set the castNum of sprite 17 to the number of cast "red_din_bread"
- set the castNum of sprite 18 to the number of cast "red_din_potatoes"
- puppetSprite(17, 0)
- puppetSprite(18, 0)
- set the castNum of sprite 19 to the number of cast "red_din_soup"
- set the castNum of sprite 20 to the number of cast "red_din_salad"
- puppetSprite(19, 0)
- puppetSprite(20, 0)
- set the castNum of sprite 21 to the number of cast "red_lun_milk"
- set the castNum of sprite 22 to the number of cast "red_lun_cheese"
- puppetSprite(21, 0)
- puppetSprite(22, 0)
- set the castNum of sprite 23 to the number of cast "red_din_dessert"
- puppetSprite(23, 0)
- end
-